package com.gpnu.crm.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.gpnu.crm.domain.Employee;
import com.gpnu.crm.query.EmployeeQueryObject;
import com.gpnu.crm.query.QueryObject;

public interface IEmployeeService {
	// 保存或更新员工
	void saveOrUpdate(Employee entity);

	// 根据id删除一个员工对象
	void delete(Long id);

	// 根据ID查询一个员工对象
	Employee get(Long id);

	// 查询所有员工对象
	PageInfo<Employee> list(EmployeeQueryObject qo);

	// 查询可移交的员工
	public List<Employee> queryNewSellers(int id);

	Employee getByUsername(String paramString);

	List<String> getRoleNamesByEmployeeId(Long paramLong);

	List<String> getPermissionsByEmployeeId(Long paramLong);
	
	//批量删除
	void batchDelete(Long[] paramArrayOfLong);

	List<Employee> list();
}
